<template>
	<h1>文章标题</h1>
	<p>文章内容</p>
	<p><button @click="$emit('submitArticle', '小李', '20221018', { age: 18 })">提交</button></p>
</template>

<script setup>
	
	const emit = defineEmits(['submitArticle'])
	
	setTimeout(()=>{
		emit('submitArticle', '自动提交')
	}, 5000)
	
</script>

<style>
</style>